package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PZiliaotypeMapper;
import com.haima.ziliao.domain.PZiliaotype;
import com.haima.ziliao.service.IPZiliaotypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 资料类型Service业务层处理
 * 
 * @author hima
 * @date 2024-10-21
 */
@Service
public class PZiliaotypeServiceImpl extends ServiceImpl<PZiliaotypeMapper, PZiliaotype> implements IPZiliaotypeService
{
    @Autowired
    private PZiliaotypeMapper pZiliaotypeMapper;

    /**
     * 查询资料类型
     * 
     * @param id 资料类型主键
     * @return 资料类型
     */
    @Override
    public PZiliaotype selectPZiliaotypeById(Long id)
    {
        return pZiliaotypeMapper.selectPZiliaotypeById(id);
    }

    /**
     * 查询资料类型列表
     * 
     * @param pZiliaotype 资料类型
     * @return 资料类型
     */
    @Override
    public List<PZiliaotype> selectPZiliaotypeList(PZiliaotype pZiliaotype)
    {
        return pZiliaotypeMapper.selectPZiliaotypeList(pZiliaotype);
    }

    /**
     * 新增资料类型
     * 
     * @param pZiliaotype 资料类型
     * @return 结果
     */
    @Override
    public int insertPZiliaotype(PZiliaotype pZiliaotype)
    {
        return pZiliaotypeMapper.insertPZiliaotype(pZiliaotype);
    }

    /**
     * 修改资料类型
     * 
     * @param pZiliaotype 资料类型
     * @return 结果
     */
    @Override
    public int updatePZiliaotype(PZiliaotype pZiliaotype)
    {
        return pZiliaotypeMapper.updatePZiliaotype(pZiliaotype);
    }

    /**
     * 批量删除资料类型
     * 
     * @param ids 需要删除的资料类型主键
     * @return 结果
     */
    @Override
    public int deletePZiliaotypeByIds(Long[] ids)
    {
        return pZiliaotypeMapper.deletePZiliaotypeByIds(ids);
    }

    /**
     * 删除资料类型信息
     * 
     * @param id 资料类型主键
     * @return 结果
     */
    @Override
    public int deletePZiliaotypeById(Long id)
    {
        return pZiliaotypeMapper.deletePZiliaotypeById(id);
    }
}
